package DemoTest.util;

import org.springframework.beans.factory.annotation.Value;

public class FtpParamConfig {

	@Value("${ftpHost}")
	private String ftpHost;
	
	@Value("${ftpPort}")
	private Integer ftpPort;
	
	@Value("${userName}")
	private String userName;
	
	@Value("${password}")
	private String password;

	static FtpParamConfig instance = null;
	
	public static FtpParamConfig getInstance() {
		if(instance == null) {
			instance = new FtpParamConfig();
		}
		return instance;
	}
	
	public String getFtpHost() {
		return ftpHost;
	}

	public void setFtpHost(String ftpHost) {
		this.ftpHost = ftpHost;
	}

	public Integer getFtpPort() {
		return ftpPort;
	}

	public void setFtpPort(Integer ftpPort) {
		this.ftpPort = ftpPort;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	
	
}
